package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.PointsRule;

/**
 * 积分规则Mapper接口
 *
 * @author ruoyi
 * @date 2024-04-22
 */
public interface PointsRuleMapper
{
    /**
     * 查询积分规则
     *
     * @param id 积分规则主键
     * @return 积分规则
     */
    public PointsRule selectPointsRuleById(Long id);

    public PointsRule selectPointsRuleByPointsRule(PointsRule pointsRule);

    /**
     * 查询积分规则
     *
     * @param effectiveTerm 有效年限
     * @return 积分规则
     */
    public PointsRule selectPointsRuleByEffectiveTerm(String effectiveTerm);

    /**
     * 查询积分规则列表
     *
     * @param pointsRule 积分规则
     * @return 积分规则集合
     */
    public List<PointsRule> selectPointsRuleList(PointsRule pointsRule);

    /**
     * 新增积分规则
     *
     * @param pointsRule 积分规则
     * @return 结果
     */
    public int insertPointsRule(PointsRule pointsRule);

    /**
     * 修改积分规则
     *
     * @param pointsRule 积分规则
     * @return 结果
     */
    public int updatePointsRule(PointsRule pointsRule);

    /**
     * 删除积分规则
     *
     * @param id 积分规则主键
     * @return 结果
     */
    public int deletePointsRuleById(Long id);

}
